
import Vue from 'vue'
import App from './scripts/App.vue';

import router from './router'
import store from './store'

import { loadScript, loadModules } from 'esri-loader'
//element ui
import { Menu, Submenu, MenuItem, MenuItemGroup, Tabs, TabPane,Tree, Button } from 'element-ui'

require("./styles/main.less");

Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Tree)
Vue.use(Button)


loadScript({
    url: "https://js.arcgis.com/3.23/",
    dojoConfig: {
        // parseOnLoad: true,
        async: true,
        packages: [{
            "name": "src",
            "location": "/js"
        }]
    }
})
loadModules(['esri/geometry/geometryEngine']);

new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App }
})
